﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="diskfolder.aspx.cs" Inherits="AnyOffice.Web.general.netdiskGX.diskfolder" %>

<%@ Register Src="~/Control/CheckRight.ascx" TagName="CheckRight" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>公共文档柜</title>
    <script type="text/javascript">
        function CheckAll(form) {
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.name != 'checkAll' && e.type == "checkbox") {
                    e.checked = form.checkAll.checked;
                }
            }
        }

        function Search() {
            parent.menu_main.location = 'file_search.aspx';
        }
        function addclass(obj) {
            if (obj.className == "1") {
                obj.style.cursor = "pointer";
            } else {
                obj.style.textDecoration = "none";
                obj.style.cursor = "text";
            }
        }
    </script>
    <style type="text/css">
        .imgbtn
        {
            width: 50px;
            text-align: center;
            float: left;
            cursor: pointer;
        }
       
        .publicfile_right
        {
            top: 0px;
            float: left;
            width: 80%;
        }
        .pleft_left
        {
            top: 0px;
            left: 0px;
            float: left;
            width: 20%;
            overflow: auto;
            height: 500px;
        }
        
        .main
        {
            top: 0px;
            margin: 0px;
            padding: 0px;
            direction: inherit;
            width: 100%;
            font-size: 9pt;
        }
    </style>
</head>
<body class="bodycolor">
    <form id="form1" runat="server" method="post">
     <div class="main_div">
        <table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
            <tr>
                <td class="tab_ti">
                    公共文档柜
                </td>
            </tr>
        </table>
        <br>
        <%--左侧--%>
        <div class="pleft_left">
            <asp:TreeView ID="tree_Path" runat="server" ShowLines="True"   
                ShowToolTip="false" NodeMouseClick="treeView1_NodeMouseClick"
                OnSelectedNodeChanged="tree_Path_SelectedNodeChanged" >
            </asp:TreeView>
        </div>
        <%--end左侧--%>
        <%--右侧--%>
        <div class="publicfile_right">
            当前目录：<asp:Label ID="labCurent" runat="server" Text="/"></asp:Label>
            <div style="direction: inherit; float: left; text-align: center;">
                <div class="imgbtn">
                    <asp:ImageButton ID="ibtn_up" ImageUrl="~/images/folder/up.gif" runat="server" OnClick="ibtn_up_Click" /><br />
                    向上</div>
                <div class="imgbtn">
                    <asp:ImageButton ID="Ibtn_Home" ImageUrl="~/images/folder/home.gif" runat="server"
                        OnClick="Ibtn_Home_Click" /><br />
                    根目录</div>
                <div class="imgbtn">
                    <asp:ImageButton ID="Imbtn_resh" ImageUrl="~/images/folder/fs_refresh.gif" runat="server"
                        OnClick="Imbtn_resh_Click" /><br />
                    刷新</div>
                <div class="imgbtn">
                    <img src="../../images/folder/ab_search.gif" alt="" onclick="Search()" /><br />
                    搜索</div>
            </div>
            <div style="clear: both">
            </div>
            <%--列表--%>
            <table width="100%" class="tab_pub" cellspacing="0" cellpadding="0" >
                <tr>
                    <td class="TableHeader" width="80">
                        类型
                    </td>
                    <td class="TableHeader" width="270">
                        名称
                    </td>
                    <td class="TableHeader" width="100">
                        大小
                    </td>
                    <td class="TableHeader" width="200">
                        描述
                    </td>
                    <td class="TableHeader" width="150">
                        更新时间
                    </td>
                </tr>
                <asp:Repeater ID="rep_pfile" runat="server" OnItemDataBound="rep_pfile_ItemDataBound"
                    OnItemCommand="rep_pfile_ItemCommand">
                    <ItemTemplate>
                        <tr class="TableLine1">
                            <td align="center">
                                <%# GetType(Eval("FileTypeID").ToString())%>
                            </td>
                            <td align="left">
                                <asp:LinkButton ID="lbtn_se" CommandName="see" CssClass='<%#Eval("FileTypeID")%>'
                                    CommandArgument='<%#Eval("DiskID")%>' onmousemove="addclass(this)" runat="server"><%#Eval("Name")%></asp:LinkButton>
                                <div style="float: right">
                                      <asp:Label ID="lablbtn" runat="server" Text="" CssClass='<%#Eval("DiskID")+","+Eval("Name")+","+Eval("FileTypeID")+","+Eval("DiskTypeID")%>'>
                                      </asp:Label>
                                     <asp:LinkButton ID="lbtn_dow" runat="server" CommandName="dow" CommandArgument='<%#Eval("DiskID")%>'
                                        Visible="false" CssClass="a_style1">下载</asp:LinkButton>
                                </div>
                            </td>
                            <td align="right">
                                <asp:Label ID="lablSize" runat="server" CssClass='<%#Eval("DiskID")%>' Text='<%#Eval("FileSize")%>'></asp:Label>
                                KB
                            </td>
                            <td align="left">
                                <%#Eval("Keyword")%>
                                &nbsp;
                            </td>
                            <td align="center">
                                <%#Eval("UpdateTime", "{0:yyyy-MM-dd}")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr class="TableLine2">
                            <td align="center">
                                <%# GetType(Eval("FileTypeID").ToString())%>
                            </td>
                            <td align="left">
                                <asp:LinkButton ID="lbtn_se" CommandName="see" CssClass='<%#Eval("FileTypeID")%>'
                                    CommandArgument='<%#Eval("DiskID")%>' onmousemove="addclass(this)" runat="server"><%#Eval("Name")%></asp:LinkButton>
                                <div style="float: right">
                                     <asp:Label ID="lablbtn" runat="server" Text="" CssClass='<%#Eval("DiskID")+","+Eval("Name")+","+Eval("FileTypeID")+","+Eval("DiskTypeID")%>'>
                                     </asp:Label> 
                                    <asp:LinkButton ID="lbtn_dow" runat="server" CommandName="dow" CommandArgument='<%#Eval("DiskID")%>'
                                        Visible="false" CssClass="a_style1">下载</asp:LinkButton>
                                </div>
                            </td>
                            <td align="right">
                                <asp:Label ID="lablSize" runat="server" CssClass='<%#Eval("DiskID")%>' Text='<%#Eval("FileSize")%>'></asp:Label>
                                KB
                            </td>
                            <td align="left">
                                <%#Eval("Keyword")%>
                                &nbsp;
                            </td>
                            <td align="center">
                                <%#Eval("UpdateTime","{0:yyyy-MM-dd}")%>
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                </asp:Repeater>
            </table>
            <%--end列表--%>
        </div>
        <%--end右侧--%>
    </div>
    <uc1:CheckRight ID="CheckRight1" runat="server" />
    </form>
</body>
</html>
